from django.db import models
from user.models import User
# Create your models here.
# 笔记模型类
class Note(models.Model):
    title = models.CharField('标题',max_length=100)
    content = models.TextField('内容')
    created_time = models.DateTimeField('创建时间',auto_now_add=True)
    updated_time = models.DateTimeField('更新时间',auto_now=True)
    user = models.ForeignKey(User,on_delete=models.CASCADE)
